package cn.zf233.xcloud.entity;

import cn.zf233.xcloud.commom.annotations.FillCreate;
import cn.zf233.xcloud.commom.annotations.FillUpdate;

import java.io.Serializable;

/**
 * Created by zf233 on 2020/11/4
 */
public class User implements Serializable {

    private static final long serialVersionUID = 7389890873739071130L;
    private Long id;
    private Long uid;
    private Integer acceptAgree;
    private String openId;
    private String headUrl;
    private String email;
    private String phone;
    private String nickname;
    private String password;
    private Integer source;
    private Integer role;
    private Integer status;
    private Long downloadFlow;
    private Integer shareNumber;
    private Long useCapacity;
    private Long capacity;
    private Integer level;
    private Integer growthValue;
    @FillCreate
    private Long createTime;
    @FillUpdate
    private Long updateTime;

    public User() {
    }

    public User(Long id, Long uid, Integer acceptAgree, String openId, String headUrl, String email, String phone, String nickname, String password, Integer source, Integer role, Integer status, Long downloadFlow, Integer shareNumber, Long useCapacity, Long capacity, Integer level, Integer growthValue, Long createTime, Long updateTime) {
        this.id = id;
        this.uid = uid;
        this.acceptAgree = acceptAgree;
        this.openId = openId;
        this.headUrl = headUrl;
        this.email = email;
        this.phone = phone;
        this.nickname = nickname;
        this.password = password;
        this.source = source;
        this.role = role;
        this.status = status;
        this.downloadFlow = downloadFlow;
        this.shareNumber = shareNumber;
        this.useCapacity = useCapacity;
        this.capacity = capacity;
        this.level = level;
        this.growthValue = growthValue;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Integer getAcceptAgree() {
        return acceptAgree;
    }

    public void setAcceptAgree(Integer acceptAgree) {
        this.acceptAgree = acceptAgree;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getDownloadFlow() {
        return downloadFlow;
    }

    public void setDownloadFlow(Long downloadFlow) {
        this.downloadFlow = downloadFlow;
    }

    public Integer getShareNumber() {
        return shareNumber;
    }

    public void setShareNumber(Integer shareNumber) {
        this.shareNumber = shareNumber;
    }

    public Long getUseCapacity() {
        return useCapacity;
    }

    public void setUseCapacity(Long useCapacity) {
        this.useCapacity = useCapacity;
    }

    public Long getCapacity() {
        return capacity;
    }

    public void setCapacity(Long capacity) {
        this.capacity = capacity;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getGrowthValue() {
        return growthValue;
    }

    public void setGrowthValue(Integer growthValue) {
        this.growthValue = growthValue;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", uid=" + uid +
                ", acceptAgree=" + acceptAgree +
                ", openId='" + openId + '\'' +
                ", headUrl='" + headUrl + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", nickname='" + nickname + '\'' +
                ", password='" + password + '\'' +
                ", source=" + source +
                ", role=" + role +
                ", status=" + status +
                ", downloadFlow=" + downloadFlow +
                ", shareNumber=" + shareNumber +
                ", useCapacity=" + useCapacity +
                ", capacity=" + capacity +
                ", level=" + level +
                ", growthValue=" + growthValue +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}